import {
  Controller,
  Get,
  Param,
  UseGuards,
  Query,
  DefaultValuePipe,
  ParseIntPipe,
} from '@nestjs/common';
import { OutboundplanService } from 'src/service/outboundplan.service';
import { AuthGuard } from 'src/guards/auth.guard';
import { QueryOutboundplanDto } from 'src/dto/query-outboundplan.dto';

@Controller('api/outboundplan')
@UseGuards(AuthGuard)
export class OutboundplanApiController {
  constructor(private readonly outboundplanService: OutboundplanService) {}

  @Get()
  findAll(@Query() query: QueryOutboundplanDto) {
    return this.outboundplanService.query(query);
  }

  @Get(':id')
  findOne(@Param('id') id: string) {
    return this.outboundplanService.findOne(+id);
  }

}
